/**
 * 
 */
package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.DataObject;
import edu.washington.tcss360.burningpenguins.data.Role;

/**
 * @author Rolando Sierra
 *
 */
public class RoleTest {

	/** A data object to use in tests */
	private DataObject my_role;
	
	/** Sets up the data object for tests. */
	@Before
	public void setUp()
	{
		my_role = new Role();
	}

	/**
	 * Test method for getId.
	 */
	@Test
	public void testGetId() 
	{
		my_role.setId(3);
		assertSame("Incorrect Id", my_role.getId(), 3);
	}

	/**
	 * Test method for getTitle.
	 */
	@Test
	public void testGetTitle() 
	{
		((Role) my_role).setTitle("test");
		assertSame("Incorrect Id", ((Role) my_role).getTitle(), "test");
	}

}
